import request from '@/utils/request'
//表彰投票
export function getKpiExcellentList(data) {
  return request({
    url: '/kpiexcellent/list',
    method: 'post',
    data
  })
}


export function setUserrights() {
  return request({
    url: '/kpiexcellent/setUserrights',
    method: 'post'
  })
}

export function createKpiExcellent(data) {
  return request({
    url: '/kpiexcellent/create',
    method: 'post',
    data
  })
}

//获取当前登录人是否已完成表彰投票
export function getExcellentList(data) {
  return request({
    url: '/kpiexcellent/getExcellentList',
    method: 'post',
    data
  })
}
//界面跳转 获取当前登录人是否已完成表彰投票
export function getExcellent(userid) {
  return request({
    url: '/kpiexcellent/getExcellent?userid='+userid,
    method: 'post',
  })
}

export function updateKpiExcellent(data) {
  return request({
    url: '/kpiexcellent/update',
    method: 'put',
    data
  })
}

export function deleteKpiExcellent(data) {
  return request({
    url: '/kpiexcellent/delete',
    method: 'delete',
    data
  })
}
  export function getVotingList(data) {
  return request({
    url: '/kpiexcellent/votinglist',
    method: 'post',
    data
  })
}
export function getnopagelist(data) {
  return request({
    url: '/kpiexcellent/getnopagelist',
    method: 'post',
    data
  })
}
//根据UserId查询数据
export function getUserIdList(userid) {
  return request({
    url: '/kpiexcellent/getuseridlist?userid='+userid,
    method: 'post',
  })
}
